﻿using Shinva.Variables.Interface;
using Shinva.Variables.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shinva.Variables.Type.integer
{
    /// <summary>
    /// SInt 是有符号 8 位整数类型，其取值范围是 -128 到 127。
    /// </summary>
    public class PlcSInt : PlcMemberBase
    {
        public sbyte Value { get; set; }
        public PlcSInt()
        {
            Name = "SInt";
            Value = 0;
            DataType = DataType.SInt;
            SizeInBits = 8;
        }
    }
}
